<!--
  Copyright 2021 The Chromium Authors. All rights reserved.
  Use of this source code is governed by a BSD-style license that can be
  found in the LICENSE file.
-->
<!DOCTYPE html>
<html>

<head>
  <script>
    const url = new URL('cross-origin-portal.html', document.location).toString()
      .replace('localhost', 'devtools.xorigin.test');
    window.onload = () => {
      const xoriginportal = document.getElementById("x-origin-portal");
      xoriginportal.src = url;
      xoriginportal.postMessage('test');
    };
  </script>
</head>

<body>
  <portal id="x-origin-portal"></portal>
</body>

</html>

